package com.ordos.recruit.module.user.entity;

import com.wonders.commons.validation.idcard.IdCard;
import com.wonders.commons.validation.phone.Phone;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * dto
 *
 * @author jin
 */
@Data
public class SysUserDto {

    private String id;
    @NotBlank(message = "手机号不能为空")
    @Phone
    private String phoneNumber;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "用户名不能为空")
    private String name;
    @NotBlank(message = "身份证不能为空")
    @IdCard
    private String cardId;
    private String userStatusCode;
    private String userIsAdmin;

}
